import request from '@/utils/request'

// 查询列表
export function listReckon(query) {
  return request({
    url: '/yanjing/reckon/list',
    method: 'get',
    params: query
  })
}

// 查询列表
export function queryPageByParam(query) {
  return request({
    url: '/yanjing/reckon/queryPageByParam',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getReckon(reckonId) {
  return request({
    url: '/yanjing/reckon/' + reckonId,
    method: 'get'
  })
}

// 新增
export function addReckon(data) {
  return request({
    url: '/yanjing/reckon',
    method: 'post',
    data: data
  })
}

// 修改
export function updateReckon(data) {
  return request({
    url: '/yanjing/reckon',
    method: 'put',
    data: data
  })
}

// 删除
export function delReckon(reckonId) {
  return request({
    url: '/yanjing/reckon/' + reckonId,
    method: 'delete'
  })
}
